package exercicis.vehicle2;

import java.util.Scanner;

public class Main {

	
	public static void main(String[] args) {

//		String fabricant = args[0];
//		String mod = args[1];
//		int any = Integer.parseInt(args[2]);
//		String prov_matr = args[3];
//		int num_matr = Integer.parseInt(args[4]);
//		String lletres_matr = args[5];
//		float consum = Float.parseFloat(args[6]);
//		float carburant = Float.parseFloat(args[7]);
		String fabricant = "";
		String mod ="";
		int any = 0;
		String prov_matr ="";
		int num_matr = 0;
		String lletres_matr = "";
		float consum = 0;
		float carburant = 0;
		String extres="";
		
		
		Vehicle v1= new Vehicle("seat","leon",2012,"BAR",44423,"FFF",15);
		v1.calculAutonomia(30.0f);
	
		System.out.println(v1);
		
		Cotxe c1= new Cotxe("audi","a4",2009,"TAR",55523,"ABC",45);
		c1.calculAutonomia(50.0f);	
		c1.setNumPlaces(5);		
		
//		Scanner sc = new Scanner(System.in);
//		System.out.println("Afegeix extres : ");
//			extres = sc.next();
//			c1.setExtres(extres);
//		    System.out.println(c1);
//		
	}

}
